package cn.sh.tools.util;

import cn.sh.tools.domain.ShContext;

/**
 * @Description ThreadLocalUtils
 * @Classname ThreadLocalUtils
 * @Date 2023/5/6
 * @Author sh
 **/
public class ThreadLocalUtils {

    private static final ThreadLocal<ShContext> SH_CONTEXT = new ThreadLocal<>();

    public static void setShContext(ShContext shContext) {
        SH_CONTEXT.set(shContext);
    }

    public static ShContext getShContext() {
        return SH_CONTEXT.get();
    }

    public static void removeShContext() {
        SH_CONTEXT.remove();
    }

}
